projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aac4b69
)
mmc: atmel_mci: add mmc card support
author
Bo Shen
<
[email protected]
>
Fri, 26 Apr 2013 00:27:07 +0000
(
00:27
+0000)
committer
Andreas Bießmann
<
[email protected]
>
Sun, 12 May 2013 14:48:11 +0000
(16:48 +0200)
add mmc card support with atmel mci driver
Signed-off-by: Bo Shen <
[email protected]
>
Signed-off-by: Andreas Bießmann <
[email protected]
>
drivers/mmc/gen_atmel_mci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/gen_atmel_mci.c
b/drivers/mmc/gen_atmel_mci.c
index fc0a1812318bb6af90a233c70c5dac74a1b259ae..77ebf174f00c5a39a35f4f2b005c6750e6df30d8 100644
(file)
--- a/
drivers/mmc/gen_atmel_mci.c
+++ b/
drivers/mmc/gen_atmel_mci.c
@@
-211,7
+211,10
@@
mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
/* Wait for the command to complete */
while (!((status = readl(&mci->sr)) & MMCI_BIT(CMDRDY)));
- if (status & error_flags) {
+ if ((status & error_flags) & MMCI_BIT(RTOE)) {
+ dump_cmd(cmdr, cmd->cmdarg, status, "Command Time Out");
+ return TIMEOUT;
+ } else if (status & error_flags) {
dump_cmd(cmdr, cmd->cmdarg, status, "Command Failed");
return COMM_ERR;
}